/**
 * @file store.js
 * @description Redux store 配置文件。
 */
import { configureStore } from '@reduxjs/toolkit';
import cartReducer from './cartSlice';
import authReducer from './authSlice';
import orderReducer from './orderSlice';
import wishlistReducer from './wishlistSlice'; // 导入 wishlist reducer

export const store = configureStore({
  reducer: {
    cart: cartReducer,
    auth: authReducer,
    orders: orderReducer,
    wishlist: wishlistReducer, // 添加 wishlist reducer
  },
});